package com.yjd.comm.funds.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.funds.model.FundsPfModel;

/**
 * <b>description</b>：平台资金记录表业务接口<br>
 * <b>time</b>：2017-11-15 17:03:45 <br>
 * <b>author</b>：  carl
 */
public interface IFundsPfService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public FundsPfModel insert(FundsPfModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(FundsPfModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;

	/**
	 *  根据时间清算平台余额
	 * @param start_time
	 * @param end_time
	 * @throws Exception
	 */
	public void clearBalance(Long start_time,Long end_time,Double begin_balance)throws Exception;

}
